﻿using System.Collections.Generic;
using System.Linq;

namespace BlogOutModell
{
    public class BlogRollDB
    {
        public static readonly BlogOutModelContainer Context = new BlogOutModelContainer();

        public static List<BlogRoll> GetAllBlogrolssById(int id)
        {
            return Context.BlogRolls.Where(b => b.BlogId == id).ToList();
        }
    }
}